package com.aspose.cells;

class zsh {
   private zsg a;

   private void a(zsg var1) throws Exception {
      if (var1 == null) {
         this.a = zsg.a();
      } else {
         this.a = var1;
      }

   }

   void a(com.aspose.cells.b.a.d.zm var1, zsg var2) throws Exception {
      this.a(var2);
      var1.a(0L, 0);

      while(var1.i() < var1.h()) {
         byte[] var3 = new byte[2];
         var1.a(var3, 0, 2);
         int var4 = com.aspose.cells.b.a.zc.e(var3, 0);
         short var5;
         switch(var4) {
         case 47:
            var1.a(var3, 0, 2);
            var5 = com.aspose.cells.b.a.zc.b(var3, 0);
            var1.a((long)var5, 1);
            break;
         case 133:
            var1.a(var3, 0, 2);
            var5 = com.aspose.cells.b.a.zc.b(var3, 0);
            var1.a(4L, 1);
            var3 = new byte[var5 - 4];
            var1.a(var3, 0, var5 - 4);
            var3 = this.a(var1, var3);
            var1.a((long)(4 - var5), 1);
            var1.b(var3, 0, var5 - 4);
            break;
         case 225:
            var1.a(4L, 1);
            break;
         case 2057:
            var1.a(18L, 1);
            break;
         default:
            var1.a(var3, 0, 2);
            var5 = com.aspose.cells.b.a.zc.b(var3, 0);
            if (var5 != 0) {
               var3 = new byte[var5];
               var1.a(var3, 0, var5);
               var3 = this.a(var1, var3);
               var1.a((long)(-var5), 1);
               var1.b(var3, 0, var5);
            }
         }
      }

   }

   void a(com.aspose.cells.b.a.d.zm var1, zby var2) throws Exception {
      var1.a(0L, 0);

      while(var1.i() < var1.h()) {
         byte[] var3 = new byte[2];
         Object var4 = null;
         var1.a(var3, 0, 2);
         int var5 = com.aspose.cells.b.a.zc.e(var3, 0);
         short var6;
         byte[] var9;
         switch(var5) {
         case 47:
            var1.a(var3, 0, 2);
            var6 = com.aspose.cells.b.a.zc.b(var3, 0);
            var1.a((long)var6, 1);
            break;
         case 92:
            var1.a(var3, 0, 2);
            var6 = com.aspose.cells.b.a.zc.b(var3, 0);
            var9 = new byte[var6];
            var1.a(var9, 0, var6);
            var9 = this.a(var1, var9, var2);
            var1.a((long)(-var6), 1);
            var1.b(var9, 0, var6);
            var2.a(0L);
            long var7 = var1.i() - (long)var6;
            var2.a(var9, var7);
            break;
         case 133:
            var1.a(var3, 0, 2);
            var6 = com.aspose.cells.b.a.zc.b(var3, 0);
            var1.a(4L, 1);
            var3 = new byte[var6 - 4];
            var1.a(var3, 0, var6 - 4);
            var3 = this.a(var1, var3, var2);
            var1.a((long)(4 - var6), 1);
            var1.b(var3, 0, var6 - 4);
            break;
         case 225:
            var1.a(4L, 1);
            break;
         case 2057:
            var1.a(18L, 1);
            break;
         default:
            var1.a(var3, 0, 2);
            var6 = com.aspose.cells.b.a.zc.b(var3, 0);
            if (var6 != 0) {
               var9 = new byte[var6];
               var1.a(var9, 0, var6);
               var9 = this.a(var1, var9, var2);
               var1.a((long)(-var6), 1);
               var1.b(var9, 0, var6);
            }
         }
      }

   }

   private byte[] a(com.aspose.cells.b.a.d.zm var1, byte[] var2, zby var3) throws Exception {
      long var4 = var1.i() - (long)var2.length;
      return var3.b(var2, var4);
   }

   private byte[] a(com.aspose.cells.b.a.d.zm var1, byte[] var2) throws Exception {
      long var3 = var1.i() - (long)var2.length;
      return this.a.a(var2, 0, var2.length, var3);
   }

   private byte[] a(com.aspose.cells.b.a.d.zm var1, byte[] var2, zbw var3) throws Exception {
      int var4 = (int)(var1.i() - (long)var2.length);
      return var3.a(var2, var4, (short)var2.length);
   }

   private byte[] b(com.aspose.cells.b.a.d.zm var1, byte[] var2, zbw var3) throws Exception {
      int var4 = (int)(var1.i() - (long)var2.length);
      return var3.b(var2, var4, (short)var2.length);
   }

   void a(com.aspose.cells.b.a.d.zm var1, zbw var2) throws Exception {
      var1.a(0L, 0);

      while(var1.i() < var1.h()) {
         byte[] var3 = new byte[2];
         var1.a(var3, 0, 2);
         int var4 = com.aspose.cells.b.a.zc.e(var3, 0);
         short var5;
         switch(var4) {
         case 47:
            var1.a(8L, 1);
            break;
         case 133:
            var1.a(var3, 0, 2);
            var5 = com.aspose.cells.b.a.zc.b(var3, 0);
            var3 = new byte[var5];
            var1.a(var3, 0, var5);
            var3 = this.b(var1, var3, var2);
            var1.a((long)(4 - var5), 1);
            var1.b(var3, 4, var5 - 4);
            break;
         case 225:
            var1.a(4L, 1);
            break;
         case 2057:
            var1.a(18L, 1);
            break;
         default:
            var1.a(var3, 0, 2);
            var5 = com.aspose.cells.b.a.zc.b(var3, 0);
            if (var5 != 0) {
               var3 = new byte[var5];
               var1.a(var3, 0, var5);
               var3 = this.b(var1, var3, var2);
               var1.a((long)(-var5), 1);
               var1.b(var3, 0, var5);
            }
         }
      }

   }

   void b(com.aspose.cells.b.a.d.zm var1, zbw var2) throws Exception {
      var1.a(0L, 0);

      while(var1.i() < var1.h()) {
         byte[] var3 = new byte[2];
         var1.a(var3, 0, 2);
         int var4 = com.aspose.cells.b.a.zc.e(var3, 0);
         short var5;
         switch(var4) {
         case 47:
            var1.a(8L, 1);
            break;
         case 133:
            var1.a(var3, 0, 2);
            var5 = com.aspose.cells.b.a.zc.b(var3, 0);
            var3 = new byte[var5];
            var1.a(var3, 0, var5);
            var3 = this.a(var1, var3, var2);
            var1.a((long)(4 - var5), 1);
            var1.b(var3, 4, var5 - 4);
            break;
         case 225:
            var1.a(4L, 1);
            break;
         case 2057:
            var1.a(18L, 1);
            break;
         default:
            var1.a(var3, 0, 2);
            var5 = com.aspose.cells.b.a.zc.b(var3, 0);
            if (var5 != 0) {
               var3 = new byte[var5];
               var1.a(var3, 0, var5);
               var3 = this.a(var1, var3, var2);
               var1.a((long)(-var5), 1);
               var1.b(var3, 0, var5);
            }
         }
      }

   }
}
